<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
</head>
<body>

<table border=1px style="margin: auto ;text-align: center"  >
    <form action="" method="post">

            {% for allbook in allbooks %}

                <tr>{{ allbook.1 }}:<input type="text" name="nname"></tr><br>
                <tr>{{ allbook.2 }}:<input type="text" name="nauthor"></tr><br>
                <tr>{{ allbook.3 }}:<input type="text" name="npublish"></tr><br>
                <tr>{{ allbook.4 }}:<input type="text" name="nprice"></tr><br>
{#                <tr>{{ allbook.5 }}:<input type="text" name="ntypes"></tr><br>#}
                {% for i in  allbook.5  %}
                <input type="checkbox" value="{{ i }}" name="ntypes">{{ i }}
                    {% endfor %}
{#                <input type="checkbox" value="1" name="types">科幻#}
{#                <input type="checkbox" value="" name="types">历史<br>#}
                <tr>{{ allbook.6 }}:<input type="text" name="npages"></tr><br>
                <tr><button>修改</button></tr>


            {% endfor %}


</form>
</table>

</body>
</html>